$(".btn-like").tooltip({
	animation:true,
});
$(".btn-like").attr('data-original-title','Liked');
$(".btn-like.disabled").attr('data-original-title','You have liked this~');

function like_feed(pid){
	$.post('/MyMicroBlog/index.php/like/',{
			pid:pid,
		},
		function(data,state,req){
			disable_like_btn($("#btn-like-"+pid));
	});
}

function disable_like_btn(btn){
	btn.addClass("disabled");
	btn.text('liked');
	btn.attr('data-original-title','You have liked this~');
}